%%%%%
%%
%% This file sets up the Place datatype and creates Place macros.
%% Places correspond to general units of game that are not characters.
%% Generally, game elements that do not come in some character's
%% packet are owned by places.  A Place macro may contain zero or more
%% of any kind of element (most likely Sign and Item macros).
%%
%% The simplest case is a single Place macro, \pWorld{}, which
%% contains all miscellaneous game elements not owned by a character.
%% However, Place macros are a good way to sort game area by general
%% location or similar.  Place may also be used as a base for more
%% complex and specific subtypes.
%%
%% Places do not necessarily correspond to only locations; you could
%% set up a series of Place macros that each represent a time period
%% in which certain elements are to be introduced into game.
%%
%%%%%

\DECLARESUBTYPE{Place}{Owner}
\PRESETS{Place}{
  \FD\MYwhere	{} %% if a Place is a single identifiable location
  \FD\MYwhen	{} %% if a Place is time-based
  }
\POSTSETS{Place}{
  \edef\mylocation{\MYwhere}
  \protected@edef\@ownerstring{%
    \MYname%
    \ifx\mylocation\empty\else\ (\mylocation)\fi%
    \ifx\MYwhen\empty\else\ (\MYwhen)\fi%
    }
  }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\NEW{Place}{\pTest}{
%  \s\MYname	{Test Place}
%  \s\MYsigns	{\sTest{}}
%  \s\MYitems	{\iTest{}\iWhatzit{}}
%  }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% LEVEL 1, 3rd floor

\NEW{Place}{\pThirdFloorHall}{
  \s\MYname     {First Level, Hallways}
  \s\MYsigns    {\scorpse{}\sintroSign{}\swalkabout{}\slookAround{}\sfloorthreetoone{}\sgemeye{}\sButton{}\sButton{}\sButton{}\sButton{}}
  \s\MYitems    {\iLightningChain{}\iSwordA{}\iRockA{}\iBombA{}\iHealingPotion{}\iBowA{}\iEarthRock{}\iAmmo{}\iAmmo{}}
  \s\MYwhites   {}
  \s\MYwhere    {3rd Floor Hallways}
  }

\NEW{Place}{\pThirdFloorGuards}{
  \s\MYname     {First Level, Guard Post}
  \s\MYsigns    {\sguardhouse{}}
  \s\MYitems    {\iRockA{}\iRockA{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-303}
  }

\NEW{Place}{\pCollapsedRoom}{
  \s\MYname     {First Level, Collapsed Room}
  \s\MYsigns    {\scollapsedroom{}}
  \s\MYitems    {\iFireBlast{}\iTrinketB{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-305}
  }

%%% LEVEL 1, 1st floor

\NEW{Place}{\pFirstHallwayA}{
  \s\MYname	{First Level, Hallway A}
  \s\MYsigns	{\sflooronetothree{}}
  \s\MYitems	{}
  \s\MYwhere	{200-1A}
  }

  \NEW{Place}{\pFirstHallwayB}{
  \s\MYname	{First Level, Hallway B}
  \s\MYsigns	{\sflooronetothree{}}
  \s\MYitems	{}
  \s\MYwhere	{200-1B}
  }

 \NEW{Place}{\pThirdSpiderA}{
  \s\MYname	{First Level, Spider Den}
  \s\MYsigns	{\sSpiderDen{}\sEggSack{}\sEggSack{}\sEggSack{}}
  \s\MYitems	{\iTorch{}\iChisel{}\iEarthRoot{}}
  \s\MYwhere	{200-107A}
  }

   \NEW{Place}{\pThirdSpiderB}{
  \s\MYname	{First Level, Rat King Den}
  \s\MYsigns	{\sRatDen{}}
  \s\MYitems	{\iBombA{}\ikey{}\iHealingPotion{}\iArmorA{}}
  \s\MYwhere	{200-107B}
  }

     \NEW{Place}{\pLaserA}{
  \s\MYname	{First Level, Spider Den}
  \s\MYsigns	{\sSpiderDen{}\sCorpse{}\sEggSack{}\sEggSack{}\sEggSack{}}
  \s\MYitems	{\iAxeA{}\iHealingPotion{}\iAntidotePotion{}\iEyeGem{}}
  \s\MYwhere	{200-105A}
  }

  \NEW{Place}{\pLaserB}{
  \s\MYname	{First Level, Laser Turret Room}
  \s\MYsigns	{\sLaser{}}
  \s\MYitems	{\iAmmo{}}
  \s\MYwhere	{200-105B}
  }

%%% LEVEL 2


\NEW{Place}{\pSecondFloorHallways}{
  \s\MYname     {Second Level, Hallways}
  \s\MYsigns    {\spalace{}\spalaceexit{}\srubysign{}}
  \s\MYitems    {\iArmorB{}\iBombC{}\iRuby{}}
  \s\MYwhites   {}
  \s\MYwhere    {Second Floor Hallways}
  }

\NEW{Place}{\pArchives}{
  \s\MYname     {Second Level, Archives}
  \s\MYsigns    {\ssudoku{}\sexplosion{}\sexplosion{}\sexplosion{}\sexplosion{}\sexplosion{}\sexplosion{}\sexplosion{}\sexplosion{}\sFoundScroll{}
  \sBoxA{}\sBoxB{}\sBoxC{}\sBoxD{}\sBoxE{}\sBoxF{}\sBoxG{}\sBoxH{}\sBoxI{}\sarchives{}}
  \s\MYitems    {\iMap{}\iFireHarrass{}\iLightningHaste{}}
  \s\MYwhites   {\wArchives{}}
  \s\MYwhere    {200-201}
  }


\NEW{Place}{\pThrone}{
  \s\MYname     {Second Level, Throne Room}
  \s\MYsigns    {\sThroneRoom{}}
  \s\MYitems    {\iBowl{}\iBowl{}\iBowl{}\iBowl{}\iBowl{}\iBowl{}\iBowl{}\iEarthPushPull{}\ikey{}\iFireBall{}\iLightningBolt{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-202}
  }

\NEW{Place}{\pKitchen}{
  \s\MYname     {Second Level, Kitchens}
  \s\MYsigns    {\sKitchen{}}
  \s\MYitems    {\iHealingPotion{}\iHastePotion{}\iAntidotePotion{}\iRuby{}\iAxeB{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-203}
  }
  

\NEW{Place}{\pArmory}{
  \s\MYname     {Second Level, Armory}
  \s\MYsigns    {\sArmory{}}
  \s\MYitems    {\iSwordA{}\iSwordB{}\iAxeA{}\iBombB{}\iRockB{}\iRockB{}\iBowC{}\iScale{}}
  \s\MYwhites   {\wArmory{}}
  \s\MYwhere    {200-205}
  }

\NEW{Place}{\pBarracks}{
  \s\MYname     {Second Level, Barracks}
  \s\MYsigns    {\sBarracks{}}
  \s\MYitems    {\iRuby{}\iTorch{}\iBowB{}\iAmmo{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-217}
  }


\NEW{Place}{\pTreasure}{
  \s\MYname     {Second Level, Treasury}
  \s\MYsigns    {\sTreasury{}\sTarget{}\sVaras{}}
  \s\MYitems    {\iRuby{}\iSack{}\iTrinketA{}\iShield{}\ibell{}}
  \s\MYwhites   {\wTreasury{}}
  \s\MYwhere    {200-219}
  }

\NEW{Place}{\pDungeons}{
  \s\MYname     {Second Level, Dungeons}
  \s\MYsigns    {\sButton{}\sDungeons{}\sSpawnPoint{}}
  \s\MYitems    {\iClubB{}\iRockA{}}
  \s\MYwhites   {}
  \s\MYwhere    {200-230}
  }

 %%% LEVEL 3

   \NEW{Place}{\pThirdHallway}{
  \s\MYname	{Third Level, Hallway}
  \s\MYsigns	{\sCrushingWall{}\sLever{}\sCrushingWallOpen{}\sCrushingWallFixed{}}
  \s\MYitems	{\iLightningDodge{}\iTorch{}\iAxeC{}}
  \s\MYwhere	{200-0}
  }

   \NEW{Place}{\pThirdLava}{
  \s\MYname	{Third Level, Lava Room}
  \s\MYsigns	{\sLavaRoom{}\sLava{}\sLava{}\sBridge{}\sBridge{}}
  \s\MYitems	{\iFireEnchant{}\iBombA{}\iSwordC{}}
  \s\MYwhere	{200-013}
  }

     \NEW{Place}{\pThirdTorture}{
  \s\MYname	{Third Level, Torture Chamber}
  \s\MYsigns	{\sTorture{}}
  \s\MYitems	{\iAntidotePotion{}\iAmmo{}}
  \s\MYwhere	{200-015}
  }

   \NEW{Place}{\pMainHall}{
  \s\MYname	{Third Level, Main Hall}
  \s\MYsigns	{\sMainHall{}}
  \s\MYitems	{\iHealingPotion{}\iArmorA{}\iEarthSlow{}\iGears{}\iGears{}\iBombB{}}
  \s\MYwhere	{200-002}
  }

   \NEW{Place}{\pQuietRoom}{
  \s\MYname	{Third Level, Worship Room}
  \s\MYsigns	{\sWorshipRoom{}\multi{8}{\sButton{}}}
  \s\MYitems	{\iArmorC{}\iHastePotion{}\iIdol{}}
  \s\MYwhere	{200-034}
  }

\NEW{Place}{\pBossRoom}{
  \s\MYname	{Third Level, Ritual Chamber}
  \s\MYsigns	{\sBoss{}\sBossUnlocked{}}
  \s\MYitems	{\iExplosives{}\iGears{}}
  \s\MYwhere	{200-032}
  }

\NEW{Place}{\pPitRoom}{
  \s\MYname	{Third Level, Forge}
  \s\MYsigns	{\sForge{}\sForge{}\sSmash{}}
  \s\MYitems	{\iRockA{}\iRockB{}\iRockB{}\ikey{}}
  \s\MYwhere	{200-032}
}